package com.paw.geo;

public class App {

  public static void main(String[] args) {
//    一个栗子
//    地点	经纬度	Geohash
//    鸟巢	116.402843,39.999375	wx4g8c9v
//    水立方	116.3967,39.99932	wx4g89tk
//    故宫	116.40382,39.918118	wx4g0ffe
    long start = System.currentTimeMillis();
//    System.out.println(new GeoHashHelper().around(44.9999, 116.3967));
//    System.out.println(new GeoHashHelper().around(45.0001, 116.3967));
//    System.out.println(DistanceHepler.distance(44.9999, 116.3967, 45.0001, 116.3967));
//    System.out.println("waste time: " + (System.currentTimeMillis() - start));
//     long start = System.currentTimeMillis();
     System.out.println(new GeoHashHelper().encode(39.999375, 116.402843));
     System.out.println(new GeoHash().encode(39.999375, 116.402843));
//     System.out.println(new GeoHashHelper().encode(45.0001, 116.3967));
     System.out.println("waste time: " + (System.currentTimeMillis() - start));
  }

}
